package com.sk.sourcecircle.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2017/12/26.
 */

public class HomePageInfo {


    /**
     * code : 200
     * data : {"user_info":{"phone":"17600635679","nickname":"11","balance":"0.00","score":0,"head_url":"https://appdev.qigle.com/yuanquan/public/upload/20171223\\f89b1f85f5cb94e399a1c0cb5d5bfdc5.png","gender":1,"sincerity":0,"introduce":null,"address":"11111"},"friend_count":7,"follow_count":2,"album_count":19}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * user_info : {"phone":"17600635679","nickname":"11","balance":"0.00","score":0,"head_url":"https://appdev.qigle.com/yuanquan/public/upload/20171223\\f89b1f85f5cb94e399a1c0cb5d5bfdc5.png","gender":1,"sincerity":0,"introduce":null,"address":"11111"}
         * friend_count : 7
         * follow_count : 2
         * album_count : 19
         */

        private UserInfoBean user_info;
        private int friend_count;
        private int follow_count;
        private int album_count;
        private int is_friend;

        public int getIs_friend() {
            return is_friend;
        }

        public void setIs_friend(int is_friend) {
            this.is_friend = is_friend;
        }

        public UserInfoBean getUser_info() {
            return user_info;
        }

        public void setUser_info(UserInfoBean user_info) {
            this.user_info = user_info;
        }

        public int getFriend_count() {
            return friend_count;
        }

        public void setFriend_count(int friend_count) {
            this.friend_count = friend_count;
        }

        public int getFollow_count() {
            return follow_count;
        }

        public void setFollow_count(int follow_count) {
            this.follow_count = follow_count;
        }

        public int getAlbum_count() {
            return album_count;
        }

        public void setAlbum_count(int album_count) {
            this.album_count = album_count;
        }

        public static class UserInfoBean implements Parcelable {
            /**
             * phone : 17600635679
             * nickname : 11
             * balance : 0.00
             * score : 0
             * head_url : https://appdev.qigle.com/yuanquan/public/upload/20171223\f89b1f85f5cb94e399a1c0cb5d5bfdc5.png
             * gender : 1
             * sincerity : 0
             * introduce : null
             * address : 11111
             */

            private String phone;
            private String nickname;
            private String balance;
            private int score;
            private String head_url;
            private int gender;
            private int sincerity;
            private String introduce;
            private String address;
            private int add_auth;
            private int show_auth;

            public int getAdd_auth() {
                return add_auth;
            }

            public void setAdd_auth(int add_auth) {
                this.add_auth = add_auth;
            }

            public int getShow_auth() {
                return show_auth;
            }

            public void setShow_auth(int show_auth) {
                this.show_auth = show_auth;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getBalance() {
                return balance;
            }

            public void setBalance(String balance) {
                this.balance = balance;
            }

            public int getScore() {
                return score;
            }

            public void setScore(int score) {
                this.score = score;
            }

            public String getHead_url() {
                return head_url;
            }

            public void setHead_url(String head_url) {
                this.head_url = head_url;
            }

            public int getGender() {
                return gender;
            }

            public void setGender(int gender) {
                this.gender = gender;
            }

            public int getSincerity() {
                return sincerity;
            }

            public void setSincerity(int sincerity) {
                this.sincerity = sincerity;
            }

            public String getIntroduce() {
                return introduce;
            }

            public void setIntroduce(String introduce) {
                this.introduce = introduce;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public UserInfoBean() {
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.phone);
                dest.writeString(this.nickname);
                dest.writeString(this.balance);
                dest.writeInt(this.score);
                dest.writeString(this.head_url);
                dest.writeInt(this.gender);
                dest.writeInt(this.sincerity);
                dest.writeString(this.introduce);
                dest.writeString(this.address);
                dest.writeInt(this.add_auth);
                dest.writeInt(this.show_auth);
            }

            protected UserInfoBean(Parcel in) {
                this.phone = in.readString();
                this.nickname = in.readString();
                this.balance = in.readString();
                this.score = in.readInt();
                this.head_url = in.readString();
                this.gender = in.readInt();
                this.sincerity = in.readInt();
                this.introduce = in.readString();
                this.address = in.readString();
                this.add_auth = in.readInt();
                this.show_auth = in.readInt();
            }

            public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
                @Override
                public UserInfoBean createFromParcel(Parcel source) {
                    return new UserInfoBean(source);
                }

                @Override
                public UserInfoBean[] newArray(int size) {
                    return new UserInfoBean[size];
                }
            };
        }
    }
}
